package cn.com.wangluotongxin.netty.constants;

public enum Result {
    FAIL(0, "失败"),
    SUCCESS(1, "成功");

    private Integer code;

    public Integer getCode() {
        return code;
    }

    private String name;

    public String getName() {
        return name;
    }

    Result(Integer code, String name){
        this.code = code;
        this.name = name;
    }
}
